//
//  DYMoneyRecordVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/20.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYMoneyRecordVC.h"
#import "DYMoneyRecordCell.h"

@interface DYMoneyRecordVC ()

@end

@implementation DYMoneyRecordVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"资金记录";
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.tableView.backgroundColor=WhiteColor;
    [self.tableView registerClass:[DYMoneyRecordCell class] forCellReuseIdentifier:@"DYMoneyRecordCell"];
    [self.tableView registerClass:[DYMoneyRecordCellTwo class] forCellReuseIdentifier:@"DYMoneyRecordCellTwo"];
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row==0) {
        return BILIHEIGHT(87);
    }
    return BILIHEIGHT(110);
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (indexPath.row==0) {
        DYMoneyRecordCellTwo *cell=[tableView dequeueReusableCellWithIdentifier:@"DYMoneyRecordCellTwo" forIndexPath:indexPath];
        return cell;
    }
    DYMoneyRecordCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYMoneyRecordCell" forIndexPath:indexPath];
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
